(function (a) {
    a.jgrid = a.jgrid || {};
    a.extend(a.jgrid, {
        defaults:
            {
                recordtext: "regels {0} - {1} van {2}",
                emptyrecords: "Geen data gevonden.",
                loadtext: "laden...",
                pgtext: "pagina  {0}  van {1}"
            },
        search:
            {
                caption: "Zoeken...",
                Find: "Zoek",
                Reset: "Herstellen",
                odata: [{oper: 'eq', text: "gelijk aan"}, {oper: 'ne', text: "niet gelijk aan"}, {
                    oper: 'lt',
                    text: "kleiner dan"
                }, {oper: 'le', text: "kleiner dan of gelijk aan"}, {oper: 'gt', text: "groter dan"}, {
                    oper: 'ge',
                    text: "groter dan of gelijk aan"
                }, {oper: 'bw', text: "begint met"}, {oper: 'bn', text: "begint niet met"}, {
                    oper: 'in',
                    text: "is in"
                }, {oper: 'ni', text: "is niet in"}, {oper: 'ew', text: "eindigd met"}, {
                    oper: 'en',
                    text: "eindigd niet met"
                }, {oper: 'cn', text: "bevat"}, {oper: 'nc', text: "bevat niet"}, {
                    oper: 'nu',
                    text: 'is null'
                }, {oper: 'nn', text: 'is not null'}],
                groupOps: [{op: "AND", text: "alle"}, {op: "OR", text: "een van de"}],
                operandTitle: "Click to select search operation.",
                resetTitle: "Reset Search Value"
            },
        edit:
            {
                addCaption: "Nieuw",
                editCaption: "Bewerken",
                bSubmit: "Opslaan",
                bCancel: "Annuleren",
                bClose: "Sluiten",
                saveData: "Er is data aangepast! Wijzigingen opslaan?",
                bYes: "Ja",
                bNo: "Nee",
                bExit: "Sluiten",
                msg:
                    {
                        required: "Veld is verplicht",
                        number: "Voer a.u.b. geldig nummer in",
                        minValue: "Waarde moet groter of gelijk zijn aan ",
                        maxValue: "Waarde moet kleiner of gelijks zijn aan",
                        email: "is geen geldig e-mailadres",
                        integer: "Voer a.u.b. een geldig getal in",
                        date: "Voer a.u.b. een geldige waarde in",
                        url: "is geen geldige URL. Prefix is verplicht ('http://' or 'https://')",
                        nodefined: " is not defined!",
                        novalue: " return value is required!",
                        customarray: "Custom function should return array!",
                        customfcheck: "Custom function should be present in case of custom checking!"
                    }
            },
        view:
            {
                caption: "Tonen",
                bClose: "Sluiten"
            },
        del:
            {
                caption: "Verwijderen",
                msg: "Verwijder geselecteerde regel(s)?",
                bSubmit: "Verwijderen",
                bCancel: "Annuleren"
            },
        nav:
            {
                edittext: "",
                edittitle: "Bewerken",
                addtext: "",
                addtitle: "Nieuw",
                deltext: "",
                deltitle: "Verwijderen",
                searchtext: "",
                searchtitle: "Zoeken",
                refreshtext: "",
                refreshtitle: "Vernieuwen",
                alertcap: "Waarschuwing",
                alerttext: "Selecteer a.u.b. een regel",
                viewtext: "",
                viewtitle: "Openen"
            },
        col:
            {
                caption: "Tonen/verbergen kolommen",
                bSubmit: "OK",
                bCancel: "Annuleren"
            },
        errors:
            {
                errcap: "Fout",
                nourl: "Er is geen URL gedefinieerd",
                norecords: "Geen data om te verwerken",
                model: "Lengte van 'colNames' is niet gelijk aan 'colModel'!"
            },
        formatter:
            {
                integer:
                    {
                        thousandsSeparator: ".",
                        defaultValue: "0"
                    },
                number:
                    {
                        decimalSeparator: ",",
                        thousandsSeparator: ".",
                        decimalPlaces: 2,
                        defaultValue: "0.00"
                    },
                currency:
                    {
                        decimalSeparator: ",",
                        thousandsSeparator: ".",
                        decimalPlaces: 2,
                        prefix: "EUR ",
                        suffix: "",
                        defaultValue: "0.00"
                    },
                date:
                    {
                        dayNames: ["Zo", "Ma", "Di", "Wo", "Do", "Vr", "Za", "Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag"],
                        monthNames: ["Jan", "Feb", "Maa", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "October", "November", "December"],
                        AmPm: ["am", "pm", "AM", "PM"],
                        S: function (b) {
                            return b < 11 || b > 13 ? ["st", "nd", "rd", "th"][Math.min((b - 1) % 10, 3)] : "th"
                        },
                        srcformat: "Y-m-d",
                        newformat: "d/m/Y",
                        parseRe: /[#%\\\/:_;.,\t\s-]/,
                        masks:
                            {
                                ISO8601Long: "Y-m-d H:i:s",
                                ISO8601Short: "Y-m-d",
                                ShortDate: "n/j/Y",
                                LongDate: "l, F d, Y",
                                FullDateTime: "l d F Y G:i:s",
                                MonthDay: "d F",
                                ShortTime: "G:i",
                                LongTime: "G:i:s",
                                SortableDateTime: "Y-m-d\\TH:i:s",
                                UniversalSortableDateTime: "Y-m-d H:i:sO",
                                YearMonth: "F, Y"
                            },
                        reformatAfterEdit: false
                    },
                baseLinkUrl: "",
                showAction: "",
                target: "",
                checkbox:
                    {
                        disabled: true
                    },
                idName: "id"
            }
    });
})(jQuery);